package com.bthdung.studios.lesson12.glUtil;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class FInputStreamReader extends InputStreamReader
{

	public FInputStreamReader(InputStream in)
	{
		super(in);
	}

	public String readToEnd() throws IOException
	{
		String text = "";

		char[] buffer = new char[1024 * 4];
		int length = -1;

		while ((length = super.read(buffer)) != -1)
			text += new String(buffer, 0, length);

		return text;
	}

}
